<?php
	include_once 'isLogin.php';
	
	$key = "*,(select group_name from admin_groups where id=admin.group_id) as group_name";
	$user = $commonc->getInfo("admin",$_COOKIE['admin_id'],$key);
	$smarty->assign('user',$user);
	
	$head = array(
				array('label'=>'首页','left'=>'left.php?action=index','url'=>'right.php'),
	            array('label'=>'公司管理','left'=>'left.php?action=company','url'=>' company_list.php'),
				array('label'=>'商品管理','left'=>'left.php?action=product','url'=>'product_list.php'),
				array('label'=>'订单管理','left'=>'left.php?action=order','url'=>'order_list.php'),
				array('label'=>'公司账务','left'=>'left.php?action=account','url'=>'account_list.php'),
				array('label'=>'网站设置','left'=>'left.php?action=setting','url'=>'set.php'),
			);
	
	
	$smarty->assign("head",$head);
	
	$label_width = count($head)*70;
	$smarty->assign("label_width",$label_width);

	$smarty->display("head.html");
?>